// 引入封装好的get方法
import { get, post } from "./index";


//新人专享-首页home
export const getnew = () => get('/getnew');

//万人团--首页
export const getgroupon = () => get('/getgroupon');

//倒计时-首页
export const getcountdown = () => get('/getcountdown');

//秒杀--首页
export const getseckill = () => get('/getseckill');

//获取商品信息-首页
export const getindexgoods = () => get("/getindexgoods");

//分类列表的侧边栏
export const getcate = () => get("/getcate")

// 获取购物车数据
export const cartlist = (params) => get('/cartlist', params);
// 删除购物车商品
export const cartdelete = (data) => post('/cartdelete', data)

//商品分类 列表
export const getgoods = params => get('/getgoods', params)
//详情
export const getgoodsinfo = (params) => get('/getgoodsinfo', params)
//添加购物车
export const cartadd = (data) => post('/cartadd', data)
//优惠券
export const getcoupon = (params) => get('/getcoupon', params)

// 我的里面的banner
export const getbanner = () => get('/getbanner')

// 登录
export const dologin = data => post("/login", data)

// register
export const doregister = data => post("/register",data)
